<?php

use think\facade\Route;

//不需要登陆的页面
Route::group(function (){
    Route::rule('/','Index/index');
    Route::rule('index','Index/index');
});
//总后台其他需要登陆校验的
Route::group(function (){
    Route::rule('hello','Index/hello'); //后台登陆
})->middleware([\app\index\middleware\Base::class]);

Route::miss(function() {
    return '404！您访问的地址不存在！';
});